package spring.test;

import java.io.File;
import java.util.ArrayList;

public class FileUtil {


    static public ArrayList<String> getFilesName(String realpath){
        ArrayList<String> arrayList = new ArrayList<>();
        File file = new File(realpath);
        File[] files = file.listFiles();
        for (File f:files) {
            if(f.isHidden()){
                continue;
            }
            if(f.isDirectory()){
               continue;
            }
            arrayList.add(f.getName());
        }
        return arrayList;
    }
}
